package org.example.mbg.mapper;

import java.util.List;
import org.apache.ibatis.annotations.Param;
import org.example.mbg.model.TIdGeneratorRecord;
import org.example.mbg.model.TIdGeneratorRecordExample;

public interface TIdGeneratorRecordMapper {
    long countByExample(TIdGeneratorRecordExample example);

    int deleteByExample(TIdGeneratorRecordExample example);

    int deleteByPrimaryKey(@Param("generatorId") Integer generatorId, @Param("year") Integer year, @Param("month") Integer month, @Param("day") Integer day);

    int insert(TIdGeneratorRecord record);

    int insertSelective(TIdGeneratorRecord record);

    List<TIdGeneratorRecord> selectByExample(TIdGeneratorRecordExample example);

    TIdGeneratorRecord selectByPrimaryKey(@Param("generatorId") Integer generatorId, @Param("year") Integer year, @Param("month") Integer month, @Param("day") Integer day);

    int updateByExampleSelective(@Param("record") TIdGeneratorRecord record, @Param("example") TIdGeneratorRecordExample example);

    int updateByExample(@Param("record") TIdGeneratorRecord record, @Param("example") TIdGeneratorRecordExample example);

    int updateByPrimaryKeySelective(TIdGeneratorRecord record);

    int updateByPrimaryKey(TIdGeneratorRecord record);
}